import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86136
 * Date: 2025-04-29
 * Time: 18:48
 */
public class Demo5 {
    public static void main(String[] args) {
        try(Reader reader = new FileReader("./output.txt")) {
            while (true) {
                char[] buf = new char[1024];
                int n = reader.read(buf);
                if(n == -1) {
                    break;
                }
                for (int i = 0; i < n; i++) {
                    System.out.println(buf[i]);
                }
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
